<template>
    <div class="form">
        <h1>Form 组件</h1>
        <p>这里是 Form 组件的内容</p>

        <h2>Checkbox</h2>
        <p>{{ checked }}</p>
        <el-checkbox v-model="checked">同意注册协议</el-checkbox>

        <h2>Radio</h2>
        <p>{{ radio4 }}</p>
        <el-radio-group v-model="radio4" size="mini" @change="c4">
            <el-radio-button label="上海"></el-radio-button>
            <el-radio-button label="北京"></el-radio-button>
            <el-radio-button label="广州"></el-radio-button>
            <el-radio-button label="深圳"></el-radio-button>
        </el-radio-group>

    </div>
</template>

<script>
    export default {
        name: 'Form',
        data() {
            return {
                radio4: '上海',
                checked: true
            }
        },
        methods: {
            c4(e) {
                console.log("当前选中的是：" + e);
            }
        }
    }
</script>

<style scoped>

</style>
